package com.suke.money.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.suke.money.mapper.FinanceAccountMapper;
import com.suke.money.model.FinanceAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: liush
 * @CreateTime: 2022-12-02  09:09
 * @Description: 账户业务实现类
 */
@Service(interfaceClass = FinanceAccountService.class, version = "1.0.0", timeout = 20000)
@Component
public class FinanceAccountServiceImpl implements FinanceAccountService {

    @Autowired
    FinanceAccountMapper financeAccountMapper;

    //首页：根据用户编号查询账户信息
    @Override
    public FinanceAccount queryFinanceAccountByUserId(Integer id) {
        return financeAccountMapper.selectFinanceAccountByUserId(id);
    }
}
